package com.designpatterns.prototype.prototype;

/**
 * ProtoType Class Implements Cloneable Interface
 * 
 * @see java.lang.Cloneable
 * 
 * @author Haiqi.Wang
 * @since 2013-5-31上午10:54:42
 */
public class ProtoType implements Cloneable {
	
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public Object clone(){
		try {
			return super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			return null;
		}
	}

}
